package com.huabo.monitor.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.huabo.monitor.entity.TblAssessStaffVo;
import com.huabo.monitor.entity.TblStaff;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.math.BigDecimal;

/**
 * <p>
 * 用户表 Mapper 接口
 * </p>
 *
 * @author yhr
 * @since 2022-08-26
 */
public interface TblStaffMapper extends BaseMapper<TblStaff> {


    @Select("select * from TBL_STAFF t where orgid = #{orgid}  AND (t.status is NULL or t.status != 0)")
    <p extends IPage<TblStaff>>  p findStaffByOrgid(p page, @Param("orgid") BigDecimal orgid);
}
